import axios from '@/libs/api.request'

export class TreatmentEnjoyManageApi {
  // 获取客户信息
  static customerNameList (params) {
    return axios.request({
      url: '/TreatmentEnjoyManage/CustomerNameList',
      method: 'get',
      enctype: 'multipart/form-data',
      params: params
    })
  }

  // 获取对应公司员工列表
  static getEmployeeList (params) {
    return axios.request({
      url: '/TreatmentEnjoyManage/GetEmployeeList',
      method: 'get',
      enctype: 'multipart/form-data',
      params: params
    })
  }

  // 通过待遇类型编码获取对应附件及待遇环节信息
  static getTreatmentLinkData (params) {
    return axios.request({
      url: '/TreatmentEnjoyManage/GetTreatmentLinkData',
      method: 'get',
      enctype: 'multipart/form-data',
      params: params
    })
  }

  // 根据条件获取待遇享受管理列表数据
  static getList (params) {
    return axios.request({
      url: '/TreatmentEnjoyManage/GetList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 根据ID获取待遇享受管理
  static getModel (params) {
    return axios.request({
      url: '/TreatmentEnjoyManage/GetModel',
      method: 'get',
      enctype: 'multipart/form-data',
      params: params
    })
  }

  // 保存待遇享受管理
  static save (params) {
    return axios.request({
      url: '/TreatmentEnjoyManage/Save',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 删除待遇享受管理
  static delete (params) {
    return axios.request({
      url: '/TreatmentEnjoyManage/Delete',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }
  
  // 导出
  static export (params) {
    return axios.request({
      url: '/TreatmentEnjoyManage/Export',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 根据员工ID、公司ID及参保类型获取员工参保基数配置信息及社保编号列表
  static getConfig (params) {
    return axios.request({
      url: '/TreatmentEnjoyManage/GetEmployeeConfigList',
      method: 'get',
      enctype: 'multipart/form-data',
      params: params
    })
  }
  
  // 根据社保编号获取七七八八
  static getWelfarePercentData (params) {
    return axios.request({
      url: '/TreatmentEnjoyManage/GetWelfarePercentData',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 根据id下载附件
  static download (params) {
    return axios.request({
      url: '/Attachment/Download',
      method: 'get',
      enctype: 'multipart/form-data',
      params: params
    })
  }
}